package com.sgb.member.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class MemberCompanyTeamBean implements Parcelable {
    
    /**
     * type_work : 1362687897295261696
     * no : 1374256135334400000
     * contact_phone : 15689899898
     * city_no : 110100
     * latitude : 39.920849
     * category_no : 20190313457612
     * user_no : 201910315363594
     * province_no : 110000
     * price : 11111
     * contact : 上单
     * hasQuete : false
     * im_name : null
     * id : 994
     * longitude : 116.433609
     * address : 北京北京市东城区
     * create_time : 1616483169765
     * has_material : 3
     * quetePrice : 0
     * equipment :
     * type_work_name : 古建筑传统彩
     * im_id : null
     * team_name : 章撒房建工程施工队(撒旦撒旦)
     * unit : kg
     * area_no : 110101
     * material :
     * is_focus : false
     * company_no : 202003277697334
     * location : null
     * category : 房建工程
     */

    private String type_work;
    private String no;
    private String contact_phone;
    private String city_no;
    private String latitude;
    private String category_no;
    private String user_no;
    private String province_no;
    private String price;
    private String contact;
    private boolean hasQuete;
    private String im_name;
    private int id;
    private String longitude;
    private String address;
    private long create_time;
    // 3 :不包含辅材和设备
    // 2 :包含辅材和设备
    // 0 :包含辅材
    // 1 :不包含辅材
    private int has_material;
    private double quetePrice;
    private String equipment;
    @SerializedName(value = "type_work_name", alternate = {"typeWorkName"})
    private String type_work_name;
    private String im_id;
    private String team_name;
    private String unit;
    private String area_no;
    private String material;
    private boolean is_focus;
    private String company_no;
    private String location;
    private String category;

    protected MemberCompanyTeamBean(Parcel in) {
        type_work = in.readString();
        no = in.readString();
        contact_phone = in.readString();
        city_no = in.readString();
        latitude = in.readString();
        category_no = in.readString();
        user_no = in.readString();
        province_no = in.readString();
        price = in.readString();
        contact = in.readString();
        hasQuete = in.readByte() != 0;
        im_name = in.readString();
        id = in.readInt();
        longitude = in.readString();
        address = in.readString();
        create_time = in.readLong();
        has_material = in.readInt();
        quetePrice = in.readDouble();
        equipment = in.readString();
        type_work_name = in.readString();
        im_id = in.readString();
        team_name = in.readString();
        unit = in.readString();
        area_no = in.readString();
        material = in.readString();
        is_focus = in.readByte() != 0;
        company_no = in.readString();
        location = in.readString();
        category = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(type_work);
        dest.writeString(no);
        dest.writeString(contact_phone);
        dest.writeString(city_no);
        dest.writeString(latitude);
        dest.writeString(category_no);
        dest.writeString(user_no);
        dest.writeString(province_no);
        dest.writeString(price);
        dest.writeString(contact);
        dest.writeByte((byte) (hasQuete ? 1 : 0));
        dest.writeString(im_name);
        dest.writeInt(id);
        dest.writeString(longitude);
        dest.writeString(address);
        dest.writeLong(create_time);
        dest.writeInt(has_material);
        dest.writeDouble(quetePrice);
        dest.writeString(equipment);
        dest.writeString(type_work_name);
        dest.writeString(im_id);
        dest.writeString(team_name);
        dest.writeString(unit);
        dest.writeString(area_no);
        dest.writeString(material);
        dest.writeByte((byte) (is_focus ? 1 : 0));
        dest.writeString(company_no);
        dest.writeString(location);
        dest.writeString(category);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MemberCompanyTeamBean> CREATOR = new Creator<MemberCompanyTeamBean>() {
        @Override
        public MemberCompanyTeamBean createFromParcel(Parcel in) {
            return new MemberCompanyTeamBean(in);
        }

        @Override
        public MemberCompanyTeamBean[] newArray(int size) {
            return new MemberCompanyTeamBean[size];
        }
    };

    public String getType_work() {
        return type_work;
    }

    public void setType_work(String type_work) {
        this.type_work = type_work;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getContact_phone() {
        return contact_phone;
    }

    public void setContact_phone(String contact_phone) {
        this.contact_phone = contact_phone;
    }

    public String getCity_no() {
        return city_no;
    }

    public void setCity_no(String city_no) {
        this.city_no = city_no;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getCategory_no() {
        return category_no;
    }

    public void setCategory_no(String category_no) {
        this.category_no = category_no;
    }

    public String getUser_no() {
        return user_no;
    }

    public void setUser_no(String user_no) {
        this.user_no = user_no;
    }

    public String getProvince_no() {
        return province_no;
    }

    public void setProvince_no(String province_no) {
        this.province_no = province_no;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public boolean isHasQuete() {
        return hasQuete;
    }

    public void setHasQuete(boolean hasQuete) {
        this.hasQuete = hasQuete;
    }

    public String getIm_name() {
        return im_name;
    }

    public void setIm_name(String im_name) {
        this.im_name = im_name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public long getCreate_time() {
        return create_time;
    }

    public void setCreate_time(long create_time) {
        this.create_time = create_time;
    }

    public int getHas_material() {
        return has_material;
    }

    public void setHas_material(int has_material) {
        this.has_material = has_material;
    }

    public double getQuetePrice() {
        return quetePrice;
    }

    public void setQuetePrice(double quetePrice) {
        this.quetePrice = quetePrice;
    }

    public String getEquipment() {
        return equipment;
    }

    public void setEquipment(String equipment) {
        this.equipment = equipment;
    }

    public String getType_work_name() {
        return type_work_name;
    }

    public void setType_work_name(String type_work_name) {
        this.type_work_name = type_work_name;
    }

    public String getIm_id() {
        return im_id;
    }

    public void setIm_id(String im_id) {
        this.im_id = im_id;
    }

    public String getTeam_name() {
        return team_name;
    }

    public void setTeam_name(String team_name) {
        this.team_name = team_name;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getArea_no() {
        return area_no;
    }

    public void setArea_no(String area_no) {
        this.area_no = area_no;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public boolean isIs_focus() {
        return is_focus;
    }

    public void setIs_focus(boolean is_focus) {
        this.is_focus = is_focus;
    }

    public String getCompany_no() {
        return company_no;
    }

    public void setCompany_no(String company_no) {
        this.company_no = company_no;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }
}
